package com.pan.kang.util.mock;


import org.apache.commons.lang3.StringUtils;

import java.util.Locale;

public class StringUtil {

    /**
     * 首字母转小写
     */
    public static String strConvertLowerCamel(String name) {
        if (StringUtils.isEmpty(name)) {
            return "";
        }
        String at = String.valueOf(name.charAt(0)).toLowerCase(Locale.ROOT);
        return at + name.substring(1);
    }

    public static String strConvertUpperCamel(String name) {
        if (StringUtils.isEmpty(name)) {
            return "";
        }
        String at = String.valueOf(name.charAt(0)).toUpperCase(Locale.ROOT);
        return at + name.substring(1);
    }


}
